package com.ytjj.qmyx.admin.controller.imController;

import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.admin.model.request.im.ImSessionTransferRequest;
import com.ytjj.qmyx.admin.service.imService.ImSessionTransInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/imTransfer")
@Slf4j
public class ImTransferController {
    @Autowired
    private ImSessionTransInfoService imSessionTransInfoService;

    /**
     * 会话主动转接
     */
    @PostMapping("/doTrans")
    public CommonResult doTrans(@RequestBody ImSessionTransferRequest request) {
        log.info("===imTransfer.doTrans==={}", request);
        return imSessionTransInfoService.doTrans(request);
    }

}
